package net.yxsoft.websocket;

import com.jfinal.plugin.IPlugin;

/**
 * @author zhaohaibo
 */
public class NettyForJFinalPlugin implements IPlugin {

  public NettyForJFinalPlugin() {
  }

  @Override
  public boolean start() {
    try {
    //  MessageServer.startServer();
      MessageServerSession.startServer();
     // MessageServerIMP.startServer();

      return true;

    } catch(Exception ex) {
      return false;
    }
  }

  @Override
  public boolean stop() {
    try {
     // MessageServer.stopServer();
      MessageServerSession.stopServer();
      //aMessageServerIMP.stopServer();
      return true;

    } catch(Exception ex) {
      return false;
    }
  }
}
